package com.forezp.configclient.springboot2Rabbit;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @version V1.0  </br>
 * @ClassName FanoutReceiver </br>
 * @Description TODO  </br>
 * @Author tonywang</br>
 * @DATE 11/26/2018 11:21 AM</br>
 */
@Component
public class FanoutReceiver {
    @RabbitListener(queues = "fanout.A")
    public void processA(String msg) {
        System.out.println("FanoutReceiverA  : " + msg);
    }
    @RabbitListener(queues = "fanout.B")
    public void processB(String msg) {
        System.out.println("FanoutReceiverB  : " + msg);
    }
    @RabbitListener(queues = "fanout.C")
    public void process(String msg) {
        System.out.println("FanoutReceiverC  : " + msg);
    }
}
